<template>
  我是{{store_user.state}}
  <van-button @click="buttonfun">21</van-button>
</template>

<script setup>
  import {
    inject
  } from "vue"
  let store_user = inject("$store_user");

  let buttonfun = () => {
    store_user.setState('userInfo', {
      a: 1
    })
  }
</script>

<style>
</style>